package com.dnjn.happiness.emo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.annotation.Excel;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 快乐分波动记录对象 emo_hscore_log
 *
 * @author happiness
 * @date 2024-03-28
 */
@Schema(name = "EmoHscoreLog", description = "快乐分波动记录")
@Accessors(chain = true)
@Getter
@Setter
@TableName("emo_hscore_log")
public class EmoHscoreLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;


    

    /** 分值波动类型 */
    @Schema(description = "分值波动类型")
    @Excel(name = "分值波动类型")
    private String rtype;

    /** 每次分数变动 */
    @Schema(description = "每次分数变动")
    @Excel(name = "每次分数变动")
    private BigDecimal scoreChanged;

    /** user_model_id关联 */
    @Schema(description = "user_model_id关联")
//    @Excel(name = "user_model_id关联")
    private Long modelScoreId;

    /** 用户id */
    @Schema(description = "用户id")
    @Excel(name = "用户id")
    private Long userId;

    /** 是否删除|0-否 1-是 */
    @Schema(description = "是否删除|0-否 1-是")
//    @Excel(name = "是否删除|0-否 1-是")
    private String deleted;



    @Excel(name = "名次")
    @TableField(exist = false)
    private String sort;


    @Excel(name = "工号")
    @TableField(exist = false)
    private String empno;

    /** 用户id */
    @Schema(description = "用户姓名")
    @Excel(name = "用户姓名")
    @TableField(exist = false)
    private String nickName;


    @Excel(name = "建议")
    @TableField(exist = false)
    private String advice;

    @Excel(name = "打卡")
    @TableField(exist = false)
    private String ai;

    @Excel(name = "问卷调查")
    @TableField(exist = false)
    private String survey;

    @Excel(name = "考勤")
    @TableField(exist = false)
    private String attendance;

    @Excel(name = "培训")
    @TableField(exist = false)
    private String training;

    @Excel(name = "沟通")
    @TableField(exist = false)
    private String communicate;

    @Excel(name = "评价")
    @TableField(exist = false)
    private String appraise;





    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("rtype", getRtype())
                .append("scoreChanged", getScoreChanged())
                .append("modelScoreId", getModelScoreId())
                .append("userId", getUserId())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("deleted", getDeleted())
                .append("version", getVersion())
                .toString();
    }
}
